package zjut.cocouml.figure;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.LineBorder;
import org.eclipse.draw2d.ToolbarLayout;

public class BMethodFigure extends Figure {
	private Label labelName = new Label();
	
	public BMethodFigure(){
		System.out.println("-----------------BMethodFigure-----------------");
		ToolbarLayout layout = new ToolbarLayout();
		layout.setVertical(true);
		this.setLayoutManager(layout);
		this.add(labelName);
		this.setOpaque(true);
	}
	public void setLabelName(String name) {
		this.labelName.setText(name);
	}
	public String getLabelName() {
		return this.labelName.getText();
	}
}
